package com.changgou.seckill.service;

import com.changgou.seckill.pojo.SeckillGoods;
import com.github.pagehelper.Page;

import java.util.List;
import java.util.Map;

public interface SecKillGoodsService {


    /**
     * 更新商品秒杀对应的数据——价格、数量、限购数量、排序
     * @param seckillGoods
     */
    void updateGoods(SeckillGoods seckillGoods);

    /**
     * 分页查询活动商品数据
     * @param id
     * @return
     */
    Page<SeckillGoods> findById(int id ,int current,int pageSize);

    Page<SeckillGoods> findAllSeckillGoods(int current , int pageSize , Map<String,String > searchMap);

}
